-- GENERATED SPELL FOR [Vengeance Bringer] --


function spell0_23865(pUnit, Event) --@Battle Shout,Self--
pUnit:FullCastSpellOnTarget(32064,pUnit)
pUnit:RegisterEvent('Sorts_23865', 551, 1)
end

function spell1_23865(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(32736,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23865', 5250, 1)
end

function Sorts_23865(pUnit, Event)
local choix_sorts_23865 = math.random(0, 1)
if choix_sorts_23865 == 0 then
pUnit:RegisterEvent('spell0_23865', 1, 1)
end
if choix_sorts_23865 == 1 then
pUnit:RegisterEvent('spell1_23865', 1, 1)
end
end

function mob23865_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23865', math.random(1500, 3000), 1)
end

function mob23865_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23865_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23865_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23865, 1, 'mob23865_Action')
RegisterUnitEvent(23865, 2, 'mob23865_Leave')
RegisterUnitEvent(23865, 3, 'mob23865_Kill')
RegisterUnitEvent(23865, 4, 'mob23865_Die')
